home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / bbs / torin.zip / jcastle.ref < prev    next >
Text File  |  1997-06-25  |  7KB  |  405 lines

  1. @#merlin
  2. @offmap
  3. @do moveback
  4. @show
  5. `r0`c  `r1  Merlin  `r0
  6.  
  7.   `0"Hello sir. Where do you wish to go today?" `2Asks Merlin.
  8.  
  9. @do `v01 is 1
  10. @do write
  11. `x`x
  12. @choice
  13. GreenTree
  14. PortTown
  15. BoneTown
  16. FlagCity
  17. Sosen Village
  18. ArrisVille
  19. Nevermind
  20. @if response not 7 then do
  21.   @begin
  22. @show
  23. `\`\  `0"Okay sir, here we go, I'll just grab my spell book."
  24.  
  25. `k  `2"`#Nethin dwargin nargin flargin!`2" Shouts Merlin.
  26.  
  27.   `2Then suddenly, you are there, on your own.
  28. `\`k
  29. @if response is 1 then do
  30.   @begin
  31.    @do x is 10
  32.    @do y is 15
  33.    @do map is 1356
  34.   @end
  35. @if response is 2 then do
  36.   @begin
  37.    @do x is 38
  38.    @do y is 16
  39.    @do map is 956
  40.   @end
  41. @if response is 3 then do
  42.   @begin
  43.    @do x is 53
  44.    @do y is 18
  45.    @do map is 1572
  46.   @end
  47. @if response is 4 then do
  48.   @begin
  49.    @do x is 71
  50.    @do y is 19
  51.    @do map is 1092
  52.   @end
  53. @if response is 5 then do
  54.   @begin
  55.    @do x is 36
  56.    @do y is 5
  57.    @do map is 456
  58.   @end
  59. @if response is 6 then do
  60.   @begin
  61.    @do x is 19
  62.    @do y is 9
  63.    @do map is 523
  64.   @end
  65.  
  66.   @loadmap &map
  67.   @end
  68. @drawmap
  69. @update
  70.  
  71. @#heal
  72. @offmap
  73. @do moveback
  74. @show
  75. `r0`c  `r1  Healer  `r0
  76.  
  77.   `2The doctor carefully looks over your wounds.
  78.  
  79.   `%YOU ARE COMPLETELY HEALED.
  80. `\`k
  81. @do `p02 is `p03
  82. @drawmap
  83. @update
  84.  
  85. @#doorguard
  86. @do moveback
  87. @label startg
  88. @if jcastle.dat exist false then do
  89.   @begin
  90.   @do saybar
  91. `0"You must leave this castle now!" `2the guard yells.
  92.   @closescript
  93.   @end
  94.  
  95. @readfile jcastle.dat
  96. `p20
  97. `s01
  98. @
  99.  
  100. @if `p20 not &playernum then do
  101.   @begin
  102.   @do saybar
  103. The doorguard salutes you as you pass.
  104.   @closescript
  105.   @end
  106. @busy
  107.  
  108.  
  109. @do `v01 is 1 ;set default choice to 1
  110. @show
  111. `r0`c  `r1 Instructing your servants `r0
  112.  
  113.   `2You're doorguard stands to attention.
  114.  
  115. @do write
  116. `x`x
  117. @choice
  118. Change Password (currently is `0`s01`%)
  119. Ownership Options
  120. Leave
  121. @
  122. @if responce is 2 then do
  123.  @begin
  124.  @show
  125. `r0`c  `r1 Ownership Options `r0
  126.  
  127.   `2You retrieve your deed and carefully look it over.
  128.    
  129.    @do `v01 is 1
  130.    @do write
  131. `x`x
  132.    @choice
  133. Transfer ownership
  134. Sell property to the bank for  `$25,000`%.
  135. Nevermind
  136.  @if response is 1 then do
  137.    @begin
  138.    @show
  139. `\`\  `2Transfer to whom?
  140.    @chooseplayer `p20
  141.  
  142.    @if `p20 is 0 then do
  143.     @begin
  144.     @show
  145.   `2You decide to keep your castle.`\`\`k
  146.     @do goto startg
  147.     @end
  148.    @do `s02 is getname `p20
  149.    @show
  150. `2  Are you sure you wish to give your castle to `0`s02`2?
  151. @do write
  152. `x`x
  153. @choice
  154. Yes
  155. No
  156.  @if responce is 2 then do
  157.    @begin
  158.     @show
  159. `\`\  `2You decide to keep your castle.`\`\`k
  160.     @do goto startg
  161.    @end
  162.  
  163.   @do delete jcastle.dat
  164.   @writefile jcastle.dat
  165. `p20
  166. `s01
  167.    @writefile mail\mail`p20.dat
  168.   `0Business note:
  169. `2-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  170. `0  `n`2 has transferred ownership of Torin Castle to you. 
  171.   Password to enter will remain `0"`s01"`2 unless
  172.   `2you come by and change it.
  173.  
  174.     @do addlog
  175.   `0`n`2 has given `%Torin Castle`2 to `0`s02`2!
  176.      @routine seperate in gametxt.ref
  177.  
  178.     @show
  179. `\`\  `2Ownership transfered.`\`\`k
  180.    @do goto done
  181.    @end
  182.   @if response is 2 then do
  183.     @begin
  184.     @show
  185. `\`\`2  Are you sure you wish to sell it back to the bank?`\
  186. @do `v01 is 1
  187. @do write
  188. `x`x
  189. @choice
  190. Yes
  191. No
  192.  @if responce is 2 then do
  193.    @begin
  194.     @show
  195. `\`\  `2You decide to keep your castle.`\`\`k
  196.     @do goto startg
  197.    @end
  198.  
  199.   @do delete jcastle.dat
  200.   @do money + 25000
  201.   @show
  202. `\`\  `%CASTLE SOLD!`2`\`\`k
  203.     @do addlog
  204.   `0`n`2 has sold `%Torin Castle`2 back to the bank!
  205.     @routine seperate in gametxt.ref
  206.     @do goto done
  207.     @end
  208.  
  209.  
  210.   @do goto startg
  211.  @end
  212.  
  213. @if responce is 1 then do
  214.   @begin
  215.   @do write
  216. `\`\  `0"And the new password, s&sir?" `2(enter `4NONE`2 for no access to anyone)`\  `2Password:`x
  217.   @do readstring 40 `s01 `s01 
  218.   @do `p20 is length `s01
  219.   @if `p20 < 2 then do
  220.    @begin
  221.    @show
  222. `\`\  `2You decide the current password is ok.`\`\`k
  223.    @do goto startg
  224.    @end
  225.   @do delete jcastle.dat
  226.   @writefile jcastle.dat
  227. &playernum
  228. `s01
  229. @show
  230. `\`\  `0"Yes s&sir, I will not forget it!" `2the guard promises.`\`\`k
  231.    @do goto startg
  232.   @end
  233.  
  234. @drawmap
  235. @update
  236.  
  237. @#sign
  238. @do moveback
  239.  
  240.  @if jcastle.dat exist false then do
  241.  @begin
  242.  @do saybar
  243. Torin Castle - For sale, enquire inside.
  244.  @end 
  245.  
  246. @if jcastle.dat exist true then do
  247.  @begin
  248. @readfile jcastle.dat
  249. `p20
  250. `s01
  251. @
  252. @do `s01 is getname `p20
  253.  @do saybar
  254. `2Property of `0`s01`2.
  255.  @end 
  256.  
  257. @#enter
  258. @do moveback
  259. @offmap
  260. @if jcastle.dat exist false then do
  261.   @begin
  262.   @show
  263. `r0`c  `r1 `%For Sale `r0
  264.  
  265.   `2Torin Castle was once a magnificent castle that has housed many
  266.   great warriors and royalty.
  267.  
  268.   `2If you choose to buy this great castle, you will recieve:
  269.   
  270.   `0*`2 A magician to teleport you to many places.
  271.  
  272.   `0*`2 Your very own healer that works free of charge.
  273.  
  274.   `0*`2 Two doorguards for your protection
  275.  
  276.   `0*`2 A room for your companions to stay.
  277.  
  278.   The asking price is `$$50,000`2.
  279.  
  280. @do `v01 is 1
  281. @do write
  282. `x`x
  283. @choice
  284. >&money 49999 Purchase it.
  285. <&money 50000 Sigh wistfully and leave since you don't have enough.
  286. >&money 49999 Leave.
  287. @
  288.  
  289. @if responce is 1 then do
  290.   @begin
  291.   @if jcastle.dat exist true then do
  292.     @begin
  293.     @show
  294. `\`\  `2DAMN! Someone bought it while you where thinking about it.`\`\`k
  295.     @do goto done
  296.     @end
  297.  
  298.   @writefile jcastle.dat
  299. &playernum
  300. NONE
  301.     @do money - 50000
  302.     @do addlog
  303.   `0`n `2buys `%Torin Castle`2!
  304.      @routine seperate in gametxt.ref
  305.  
  306.   @show
  307. `r0`c  `r1 `%Why hello there, landowner! `r0
  308. `\`2  Nice job!  You now own this keep!
  309.  
  310.   `2Enjoy your new home.`\`\`k
  311.   @end
  312.  
  313. @label done
  314. @drawmap
  315. @update
  316. @closescript
  317.   @end
  318.  
  319. @readfile jcastle.dat
  320. `p20
  321. `s01
  322. @
  323.  
  324. @do `p21 is deleted `p20
  325.  
  326. @if `p21 is 1 then do
  327.   @begin
  328.    @do delete jcastle.dat
  329.     @do addlog
  330.   `%Torin Castle`2 is put on the market today.
  331.      @routine seperate in gametxt.ref
  332.  
  333.    ;run script again
  334.    @do goto enter
  335.   @end
  336.  
  337. @if `p20 not &playernum then do
  338.   @begin
  339.   @do `s02 is getname `p20
  340.   @do upcase `s01
  341.   @if `s01 is NONE then do
  342.    @begin
  343.    @show
  344. `r0`c  `r1 None shall pass `r0
  345.  
  346.   `2You knock on the door for some time before a reply is given.
  347.  
  348.   `0"Master `s02`0 has declared that `4NO`0 visitors shall be allowed!" `2a
  349.   voice calls from behind the wall.
  350.  
  351.   
  352. `k
  353.    @do goto done
  354.    @end
  355.  
  356.   @show
  357. `r0`c  `r1 Stand and unfold thyself `r0
  358.  
  359. `2  A head pops over the gate.  `0"Halt, you!  What business have you with
  360.   my lord and master, `%`s02`0?" `2the door guard asks.
  361.  
  362. @do write
  363. `x`x
  364. @do `v01 is 1
  365. @choice
  366. Offer an explanation.
  367. Visit later.
  368.   @if response is 1 then do
  369.    @begin
  370.    @do write
  371. `\`\  `2Say what? :`x
  372.   @do readstring 40 NIL `s03 
  373.   @do upcase `s03
  374.   @do upcase `s01
  375.  
  376.   @if `s03 is `s01 then do
  377.     @begin
  378.     @show
  379. `\`\  `0"Welcome to `%Torin Castle`0,"`2 the guard smiles as he opens the gate.`\`\`k
  380.     @do goto letmein
  381.     @end
  382.    @writefile mail\mail`p20.dat
  383.   `0Torin Castle News:
  384. `2-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  385. `0  `n`2 attempted to sweet talk the guard by saying
  386.   `0"`s03"`2.  `2He was `bNOT`2 allowed in.
  387.  
  388.    @show
  389. `\`\  `2The guard shows no interest.`\`\`k
  390.    @do goto done
  391.    @end
  392.  
  393.   @do goto done
  394.  
  395.   @end
  396.  
  397. ;let him in
  398. @label letmein
  399. @do x is 36
  400. @do y is 15
  401. @do map is 1202
  402. @loadmap 1202
  403. @do goto done
  404. @#done
  405.